package udpTest;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.socket.DatagramPacket;

/**
 * @Author: jia
 * @Descirption:
 * @Date: 2018/5/18 17:02
 * @Modified By:
 */


public class UdpClientHandler extends SimpleChannelInboundHandler {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, Object o) throws Exception {
        System.out.println("收到的消息时："+o);
        ctx.writeAndFlush("我是udp客户端！");
    }
}
